<?php
/**
 * 开通认证
 */
use Doraemon\tools\Log;
use Doraemon\model\Member as mMember;
use Doraemon\service\DesignerInfoLib\OperateInfoService as sOperateInfo;
use Doraemon\service\DesignerService\WholeHouse as sWholeHouse;

class OpenServiceAction extends ActionPlugin {

    public function main()
    {
        Log::info('设计师开通认证接收到事件信息', $this->messageBody);
        $message = $this->messageBody;
        $uid = $this->messageBody['data']['uid'];
        // 处理全屋设计H5用户展示状态字段
        sWholeHouse::syncShowStatus($uid);
        Log::info('设计师开通认证接收到的事件', compact('uid', 'message'));
        $this->setSuccess();
    }
}